using System;

namespace Loc.HibernateMini.Attributes {
    [AttributeUsage(AttributeTargets.Class)]
    public class PersistentClassAttribute : Attribute {
        private string _dbTableName;
        private Type[] _inheritedTypes;
        public string DbTableName
        {
            get { return _dbTableName; }
            set { _dbTableName = value; }
        }

        public Type[] InheritedTypes
        {
            get { return _inheritedTypes; }
            set { _inheritedTypes = value; }
        }

        public PersistentClassAttribute(string dbTableName,  params Type[] inheritedTypes)
        {
            _dbTableName = dbTableName;
            _inheritedTypes = inheritedTypes;
        }

        public override String ToString() {
            return "Persistent Class";
        }
    }
}
